package com.suwish.pc.ui.component;

import com.suwish.pc.util.StringUtils;

public class KeyValueItem {

	private String key = "";
	private Object value = null;
	
	public KeyValueItem(){}
	public KeyValueItem(String key, Object value){
		this.key = key;
		this.value = value;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public Object getValue() {
		return value;
	}
	public void setValue(Object value) {
		this.value = value;
	}
	
	public String toString(){
		return StringUtils.isEmpty(key) ? super.toString() : key;
	}
}
